//
//  BSBoneRef.m
//  Spriter_forCocs2d
//
//  Created by Yang Bean on 13/4/18.
//
//

#import "BSBoneRef.h"

@implementation BSBoneRef
- (id)initWithBoneId:(int)bone
          timelineID:(int)timeline
               keyID:(int)key
        parentBoneID:(int)parent
{
    self = [super init];
    if (self) {
        m_boneID = bone;
        m_timelineID = timeline;
        m_key = key;
        m_parentBoneID = parent;
    }
    return self;
}
- (int)boneID
{
    return m_boneID;
}
- (int)timelineID
{
    return m_timelineID;
}
- (int)key
{
    return m_key;
}
- (int)parentBoneID
{
    return m_parentBoneID;
}
- (NSString *)description
{
    return [NSString stringWithFormat:@"bone id = %d, timeline = %d , key id = %d, parent bone iD = %d",
            m_boneID, m_timelineID, m_key, m_parentBoneID];
}
@end
